package com.sp.scmdb.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Type;
import org.joda.time.LocalDate;

import com.sp.scmdb.common.DomainObject;

@Entity
@Table(name = "VIEW_LEADERSHIP")
public class ViewLeadership extends DomainObject {

	@Column(name = "workTime")
	@Type(type = "org.joda.time.contrib.hibernate.PersistentLocalDate")
	private LocalDate workTime;

	@Column(name = "empName")
	private String empName;

	@Column(name = "dutyname")
	private String dutyname;

	@Column(name = "empLabelID")
	private Integer empLabelID;

	@Column(name = "shiftName")
	private String shiftName;

	@Column(name = "shiftDetailName")
	private String shiftDetailName;
	
	@Column(name = "empID")
	private Integer empID;
	
	@Column(name = "shiftDetailID")
	private Integer shiftDetailID;

	
	public Integer getEmpID() {
		return empID;
	}

	public void setEmpID(Integer empID) {
		this.empID = empID;
	}

	public String getWorkTimeString(){
		return this.workTime.toString("yyyy-MM-dd");
	}
	public void setWorkTimeString(String workTime){
		this.workTime=new LocalDate(workTime);
	}
	public Integer getShiftDetailID() {
		return shiftDetailID;
	}

	public void setShiftDetailID(Integer shiftDetailID) {
		this.shiftDetailID = shiftDetailID;
	}

	public LocalDate getWorkTime() {
		return workTime;
	}

	public void setWorkTime(LocalDate workTime) {
		this.workTime = workTime;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public String getDutyname() {
		return dutyname;
	}

	public void setDutyname(String dutyname) {
		this.dutyname = dutyname;
	}

	public Integer getEmpLabelID() {
		return empLabelID;
	}

	public void setEmpLabelID(Integer empLabelID) {
		this.empLabelID = empLabelID;
	}

	public String getShiftName() {
		return shiftName;
	}

	public void setShiftName(String shiftName) {
		this.shiftName = shiftName;
	}

	public String getShiftDetailName() {
		return shiftDetailName;
	}

	public void setShiftDetailName(String shiftDetailName) {
		this.shiftDetailName = shiftDetailName;
	}

}
